package com.cars.phoenix.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cars.phoenix.entity.Student;
import org.apache.ibatis.annotations.Update;

/**
 * @ClassName: StudentDao
 * @Description: 学生实体类-数据访问层
 * @author: caoqianfan
 * @date: 2023/9/15 14:36
 */
public interface StudentMapper extends BaseMapper<Student> {
    @Update("UPSERT INTO \"hello_phoenix\".\"student\" (\"id\", \"name\", \"age\", \"birthday\", \"money\") VALUES( #{id}, #{name}, #{age}, #{birthday}, #{money})")
    void upsert(Student student);
}